package com.dashu.core.dto;

import com.dashu.base.enums.common.SubordinateType;
import com.dashu.base.enums.common.UserType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "用户返回值")
public class UserDTO {
    @ApiModelProperty(value = "id")
    private long id;
    @ApiModelProperty(value = "创建者")
    private long createUser;
    @ApiModelProperty(value = "创建时间")
    private long createTime;
    @ApiModelProperty(value = "更新者")
    private long updateUser;
    @ApiModelProperty(value = "编辑时间")
    private long updateTime;
    @ApiModelProperty(value = "用户名称")
    private String userName;
    @ApiModelProperty(value = "密码")
    private String userPass;
    @ApiModelProperty(value = "权限")
    private String pid;
    @ApiModelProperty(value = "头像地址")
    private String head;
    @ApiModelProperty(value = "权限时间")
    private long openTime;
    @ApiModelProperty(value = "用户类型  超管:SUPERTUBE,运营:ONE_OPERATORS,单位:CAMPUS,园区:PARK")
    private UserType userType;
    @ApiModelProperty(value = "昵称")
    private String nickname;
    @ApiModelProperty(value = "管控 开放:OPEN,禁用:DISABLE")
    private SubordinateType subordinate;
    @ApiModelProperty(value = "账号所有者")
    private long owner;
    @ApiModelProperty(value = "token")
    private String token;
    @ApiModelProperty(value = "节点")
    private long level;
    @ApiModelProperty(value = "角色")
    private String permissison;
    @ApiModelProperty(value = "上级", required = true)
    private long baseId;
}
